﻿<template id="@(ViewBag.GetCompTemplate("dialog"))">
    <el-dialog v-model="visible" :width="800" :title="title" :destroy-on-close="true" :close-on-click-modal="false" :close-on-press-escape="false" draggable v-on:close="closed">
        <el-divider class="layout-page-form-top-border"></el-divider>

        @* 请在此处编写自定义内容 *@

        <template #footer>
            <el-button v-on:click="close">取消</el-button>
            <el-button type="primary" v-on:click="submit">确定</el-button>
        </template>
    </el-dialog>
</template>
<script type="text/javascript">
    var @(ViewBag.GetCompName("dialog")) = {
        template: "#@(ViewBag.GetCompTemplate("dialog"))", data() {
            return {
                path: "@(ViewBag.PagePath)",
                visible: false,
                title: null
            }
        },
        methods: {
            open(){
                this.visible = true;
            },
            close(){
                this.visible = false;
            },
            closed(){

            },
            submit(){

            }
        },
        mounted() { }
    };
</script>